<?php

namespace console\controllers;


use mz\models\AdminModel;
use yii\console\Controller;

class MzcmsController extends Controller
{
    # 设置密码
    public function actionSetPass($password)
    {
        $model = new AdminModel();
        $model->setPassword($password);
        echo $model->password_hash;
    }

    public function actionIndex()
    {
        echo "this is console test";
    }
}